crPELogOffServer

The crPELogOffServer function logs off the specified server. Use any time you have to log off a specified server.

Declare Function crPELogOffServer Lib "crwrap32.dll" (ByVal DLLName As String, ByVal ServerName As String, ByVal dbName As String, ByVal UserID As String, ByVal Password As String) As Integer

Parameters

DLLName

Specifies the name of the Crystal Reports DLL for the data source you want to log off, for example, PDSODBC.DLL. Note that the DLLName must be enclosed in quotes. DLL names have the following naming convention: PDB*.DLL for standard (non-SQL) databases, PDS*.DLL for SQL/ODBC databases.

ServerName

Specifies the logon name for the server used to create the report. For ODBC, use the data source name. *

dbName

Specifies the logon name for the database used to create the report. *

UserID

Specifies the user ID# necessary to log on to the server. *

Password

Specifies the password necessary to log on to the server.

*When you pass an empty string ("") for this parameter, the program uses the value that's already set in the report. If you want to override a value that's already set in the report, use a non-empty string (i.e., "Server A"). All strings must be null-terminated.

Return Value

TRUE (1) if the call is successful, FALSE (0) if the call fails.

Remarks


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com